package loja.controller.editor;

import loja.model.entity.produto.ItemEstoque;
import loja.model.handler.HandlerViewEntity;
import loja.model.handler.impl.ItemEstoqueHandlerView;
import loja.model.service.persitence.dao.IDao;
import loja.model.service.persitence.dao.entity.impl.ItemEstoqueDao;
import loja.view.editor.components.frame.EntityFrameEditor;
import loja.view.editor.components.frame.ItemEstoqueFrameEditor;

public class ListenerItemEstoqueFrameEditor extends
		ListenerFrameEditor<ItemEstoque, Long> {

	public ListenerItemEstoqueFrameEditor() {
		super(ItemEstoque.class);
	}

	@Override
	protected IDao<ItemEstoque, Long> createEntityDao() {
		return new ItemEstoqueDao();
	}

	@Override
	protected EntityFrameEditor<ItemEstoque, Long> createEntityFrameEditor() {
		return new ItemEstoqueFrameEditor(handlerViewEntity);
	}

	@Override
	protected HandlerViewEntity<ItemEstoque, Long> createHandlerViewEntity() {
		return new ItemEstoqueHandlerView();
	}

}
